package com.azh.server.client;

import java.io.IOException;
import java.net.Socket;

import com.azh.server.transport.APackger;
import com.azh.server.transport.Encoder;
import com.azh.server.transport.Transporter;

/**
 * @author zhaozhenhang <zhaozhenhang@kuaishou.com>
 * Created on 2022-05-02
 */
public class CStarter {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 8999);
        Encoder e = new Encoder();
        Transporter t = new Transporter(socket);
        APackger packager = new APackger(t, e);

        Client client = new Client(packager);
        AShell shell = new AShell(client);
        shell.run();
    }
}
